pkg_bz2_one_prj:
	$(show)                                                              ; \
	tar_dvp=$(HOME)/.2tar/tenacitas/cpp                                  ; \
	cp -fr $(dir_prj) "$$tar_dvp"/prj 2> /dev/null                       ; \
	cp -fr $(dir_src) "$$tar_dvp"/src 2> /dev/null                       ; \
	cp -fr $(dir_inc) "$$tar_dvp"/inc 2> /dev/null                       ; \
	cp -fr $(dir_inp) "$$tar_dvp"/inc 2> /dev/null                       ; \
	cp -fr $(dir_cfg) "$$tar_dvp"/etc 2> /dev/null                       ; \
	cp -fr $(dir_tst) "$$tar_dvp"/etc 2> /dev/null                      ; 


#cd $(dir_dvp)/tool/gmake                                           ; \
#	$(make_cmd) project=$(project) prj_clean                             ; \




#@public@|pkg_bz2|Creates a tar-bzip file with all necessary to build a project
#@public_detailed@|pkg_bz2|Syntax: make project=<project-name> pkg_bz2
#@public_detailed@|pkg_bz2|Bzips all the files necessary by the project informed, as well as the files of all the projects this project depends on, and all the 'tool' directory
#@public_detailed@|pkg_bz2|The bz3 file is located at $(HOME)/tenacitas.build_system.tar.bz2
pkg_bz2:
	$(show) "********************************************* "             ; \
	echo "Creating tar.bz2 file for project $(project) "                 ; \
	tar_dvp=$(HOME)/.2tar/tenacitas/cpp                                  ; \
	rm -rf "$$tar_dvp"  2> /dev/null                                     ; \
	mkdir -p "$$tar_dvp"   2> /dev/null                                  ; \
	cp -f $(dir_dvp)/manual.pdf "$$tar_dvp" 2> /dev/null                 ; \
	cp -R $(dir_dvp)/tool "$$tar_dvp"  2> /dev/null                      ; \
	make -p $$tar_dvp/bin 2> /dev/null                                   ; \
	make -p $$tar_dvp/lib 2> /dev/null                                   ; \
	make -p $$tar_dvp/src 2> /dev/null                                   ; \
	make -p $$tar_dvp/inc 2> /dev/null                                   ; \
	make -p $$tar_dvp/doc 2> /dev/null                                   ; \
	make -p $$tar_dvp/share 2> /dev/null                                 ; \
	make -p $$tar_dvp/etc 2> /dev/null                                   ; \
	make -p $$tar_dvp/var 2> /dev/null                                   ; \
	make -p $$tar_dvp/test 2> /dev/null                                  ; \
	$(make_cmd) chain chain_target=pkg_bz2_one_prj                       ; \
	$(make_cmd) pkg_bz2_one_prj                                          ; \
	for s in `find "$$tar_dvp" -name ".svn"` ; do                          \
		rm -rf "$$s" 2> /dev/null                                    ; \
	done                                                                 ; \
	cd "$$tar_dvp"                                                       ; \
	cd ..                                                                ; \
	cd ..                                                                ; \
	tar cvjf $(HOME)/tenacitas.tar.bz2 tenacitas 2> /dev/null            ; \
	rm -rf $(HOME)/.2tar                            2> /dev/null         ;